package com.szh.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户实体类
 *
 * @author: SongZiHao
 * @date: 2023/5/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(description = "用户实体")
public class User extends BaseEntity {

    @ApiModelProperty(value = "用户姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "用户年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "用户性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "用户所借图书")
    @TableField("borrow_books")
    private String borrowBooks;

    @ApiModelProperty(value = "用户住址")
    @TableField("address")
    private String address;
}
